//
//  AMPConstants.swift
//  LivingHelper
//
//  Created by Ampaw on 2017/9/8.
//  Copyright © 2017年 Ampaw. All rights reserved.
//

import UIKit

struct AMPColor {
    let color:UIColor
    init(red:CGFloat,green:CGFloat,blue:CGFloat,alpha:CGFloat){
        
        color = UIColor(red: red/255, green: green/255, blue: blue/255, alpha: alpha)
    }
}

class AMPConstants: NSObject {

    /**
     *   当前设备屏幕的宽带
     **/
    static let AMP_SCREEN_WIDTH = UIScreen.main.bounds.width
    
    /**
     *   当前设备屏幕的高度
     **/
    static let AMP_SCREEN_HEIGHT = UIScreen.main.bounds.height
    
    /**
     *   日志开关 true:开 false:关
     **/
    static let AMP_LOG:Bool = true
    
    /**
     *   提示消息
     **/
    static let AMP_NO_NET_MSG = "网络不给力!"
    
    /**
     *   视图间隔
     **/
    static let AMP_Space = 10
    
    /**
     *   主题颜色
     **/
    static let AMPMainColor = UIColor(red: 68/255.0, green: 174/255.0, blue: 226/255.0, alpha: 1.0);
    static let AMPMainTextColor = UIColor(red: 105/255.0, green: 105/255.0, blue: 105/255.0, alpha: 1.0);
    static let AMPBGViewColor = UIColor(red: 241/255.0, green: 241/255.0, blue: 241/255.0, alpha: 1.0);
    static let AMPYellowColor = UIColor(red: 245/255.0, green: 161/255.0, blue: 0/255.0, alpha: 1.0);
    
    /**
     *   字体大小
     **/
    static let AMP_Font12 = UIFont.systemFont(ofSize: 12)
    static let AMP_Font13 = UIFont.systemFont(ofSize: 13)
    static let AMP_Font14 = UIFont.systemFont(ofSize: 14)
    static let AMP_Font16 = UIFont.systemFont(ofSize: 16)
    static let AMP_Font18 = UIFont.systemFont(ofSize: 18)

    /**
     *   Key
     **/
    static let AMP_AppVersion:String = "version"
    
}
